using System;
using System.ComponentModel;
using AmazeUI.Imodel;
using AmazeUI.Imodel.Res;

namespace AmazeUI.db
{
    public partial class PayOrder : IOrderToPay
    {
        
        public PayOrder()
        {
            
        }
        public PayOrder(IPayOrder model)
        {
            this.OverdueTime = DateTime.MaxValue;
            SetModel(model);
            this.AddTime = DateTime.Now;
            this.IsEnd = true;
            this.IsPay = false;
            this.IsVal = false;
            this.IsRefund = false;
        }

        public void SetModel(IPayOrder model)
        {
            this.OrderNo = model.OrderNo;
            this.Addre = model.Addre;
            this.Body = model.Body;
            this.BodyContent = model.BodyContent;
            this.GoodsId = model.GoodsId;
            this.Name = model.Name;
            this.Ip = model.Ip;
            this.OverdueTime = model.OverdueTime;
            this.Phone = model.Phone;
            this.TotalFee = model.TotalFee;
            this.Remarks = model.Remarks;
            this.XtUserId = model.XtUserId; 

        }
    }
}